/*
 * Copyright (c) 2019-2020, https://api.iot.10086.cn/(https://gitee.com/cmcc-iot-api/iot-card-open-application/).
 */
package cn.iot.card.open.ec.dto.groupinfo;

import java.io.Serializable;

/**
 * 群组语音白名单设置请求体
 *
 * @author cmcc-iot-api
 * @date 20200119 14:35:09
 */
public class EcGroupVoiceWhiteSetReqDTO implements Serializable {

    private static final long serialVersionUID = -4189296525805552468L;

    private String msisdn;

    private String groupId;

    private String accountId;

    private String operType;

    public String getMsisdn() {
        return msisdn;
    }

    public void setMsisdn(String msisdn) {
        this.msisdn = msisdn;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getOperType() {
        return operType;
    }

    public void setOperType(String operType) {
        this.operType = operType;
    }

    @Override
    public String toString() {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("集团旗下的群组ID:").append(groupId).append(",");
        if (operType.equals("1")) {
            stringBuilder.append("语音白名单配置类型:").append("新增").append(",");
        } else if (operType.equals("4")) {
            stringBuilder.append("语音白名单配置类型:").append("删除").append(",");
        }
        stringBuilder.append("群组配置的语音白名单号码（MSISDN）:").append(msisdn);
        return stringBuilder.toString();
    }
}
